/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.clases;

import java.util.HashMap;

/**
 *
 * @author Cristobal
 */
public class TvPrototype {
    private HashMap<String,Tv> prototipos = new HashMap<String,Tv>();
    public TvPrototype(){
        Plasma plasma = new Plasma("Sony", 21, "plateado",999.99,90,0.5);
        LCD lcd = new LCD("Panasonic",42,"Plateado",599.999,0.5);
        prototipos.put("Plasma",plasma);
        prototipos.put("LCD",lcd);
    }
    public Object prototipo(String tipo)throws CloneNotSupportedException{
        return prototipos.get(tipo).clone();
    }
}
